package com.wanxi.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.security.core.GrantedAuthority;

/**
 * @Author:Doteon
 * @createDate:2023/3/11
 * @version: 1.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Permission implements GrantedAuthority {
    private Long id;
    private String name;

    @Override
    public String getAuthority() {
        return this.name;
    }
}
